package com.slz3.business.module.orderManagement.ordOrder.service;

import com.slz3.business.module.orderManagement.ordOrder.domain.OrdOrder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.util.MultiValueMap;

import java.util.List;
import java.util.Optional;
import java.util.UUID;
import java.util.stream.Stream;

/**
 * 非事务型 service
 */
public interface OrdOrderService {

    OrdOrder save(OrdOrder ordOrder);

    Page<OrdOrder> page(MultiValueMap<String,String> queryParams);

    OrdOrder modify(OrdOrder ordOrder);

    Optional<OrdOrder> single(UUID uuid);

    List<OrdOrder> findAllByUuids(Iterable<UUID> uuids);

    List<OrdOrder> delete(List<OrdOrder> ordOrderList);
}
